wayland: configure clients that resize themselves
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 27 Oct 2015 17:05:39 +0000 (18:05 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Wed, 28 Oct 2015 07:41:17 +0000 (08:41 +0100)
Make sure the wayland backend sets a new geometry when the client
resizes itself, otherwise the compositor won't be notified and may
revert to the old size on state changes.

Thanks to Jasper St. Pierre <jstpierre@mecheye.net> who pointed out the
problem in gtk+.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=755051

gdk/wayland/gdkwindow-wayland.c

index a71e60ea1eca8c9f9afd3110e9296f7f37038e9f..4df37f11b222c59506b307cf9c92494bef2b42b8 100644 (file)
@@ -2387,10 +2387,6 @@ gdk_wayland_window_set_shadow_width (GdkWindow *window,
   if (GDK_WINDOW_DESTROYED (window))
     return;
 
-  if (left == impl->margin_left && right == impl->margin_right &&
-      top == impl->margin_top && bottom == impl->margin_bottom)
-    return;
-
   /* Reconfigure window to keep the same window geometry */
   new_width = window->width -
     (impl->margin_left + impl->margin_right) + (left + right);